package org.dromara.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.dromara.business.domain.BusinessCollect;
import org.dromara.business.domain.bo.BusinessCollectBo;
import org.dromara.business.domain.vo.BusinessCollectVo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 用户收藏Service接口
 *
 * @author zlj
 * @date 2024-11-18
 */
public interface BusinessCollectService extends IService<BusinessCollect> {

    /**
     * 查询用户收藏
     */
    BusinessCollectVo queryById(Long businessCollectId);

    /**
     * 查询用户收藏列表
     */
    TableDataInfo<BusinessCollectVo> queryPageList(BusinessCollectBo bo, PageQuery pageQuery);

    /**
     * 查询用户收藏列表
     */
    List<BusinessCollectVo> queryList(BusinessCollectBo bo);

    /**
     * 新增用户收藏
     */
    Boolean insertByBo(BusinessCollectBo bo);

    /**
     * 修改用户收藏
     */
    Boolean updateByBo(BusinessCollectBo bo);

    /**
     * 校验并批量删除用户收藏信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
